﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;

namespace TharpT9Lab
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {

        private void T9Button_Click(object sender, RoutedEventArgs e)
        {
            if (sender is T9Button)
            {
                T9Word._theEngine.ProcessCommand((sender as T9Button).T9Command, ref (sender as T9Button).TheT9Word);
            }
            else
                throw new ArgumentException("Not a T9Button");
        }//end T9Button_Click
    }
}
